package com.wnhz.wnmap.smovie.genre.api;

import com.wnhz.wnmap.common.result.HttpResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "wnmap-genre",contextId = "wnmap-genre-id")
public interface IGenreFeign {

    @GetMapping("/api/genre/findAllGenres")
     HttpResp findAllGenres();


    @GetMapping("/api/genre/findByName")
    HttpResp findGenreByName(@RequestParam("name") String name);
}
